const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  // 解决跨域问题
  devServer: {
    proxy: {
      '/api': {
        target: 'http://1.15.179.44:3001',
        pathRewrite: { '^/api': '' }
      }
    }
  },
  // 打包后dist中的index.html可以直接点击打开
  publicPath: ''
})
